password = 'a123456'
i = 3
while i > 0:
	pwd = input('请输入密码：')
	if pwd == password:
		print('登入成功')
		break
	else:
		i = i  -  1
		print('密码错误')
		if i > 0:
			print('你还有',i,  '次机会')
		else:
			print('你没有机会了')



		
